
from __future__ import unicode_literals
from django.db import models
from optitrans.domain.route import Route
from optitrans.domain.ville import Ville

class PoiStation(models.Model):
    id = models.IntegerField(primary_key=True)
    id_route = models.ForeignKey(Route, db_column='id_route',related_name='route_poi_station')
    latitude = models.FloatField()
    longitude = models.FloatField()
    altitude = models.FloatField()
    id_ville = models.ForeignKey(Ville, db_column='id_ville',related_name='ville_poi_station')
    type_station = models.IntegerField()
    class Meta:
        db_table = 'poi_station'


